﻿using Catastrophe.BasePC.UI.File;
using Catastrophe.BasePC.UI.SystemIni;
using Catastrophe.BasePC.UI.UIMode;
using Catastrophe.Common.FileM;
using Catastrophe.CommonCore.FileM;
using Catastrophe.Initialize;
using Opc.Ua;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Catastrophe.BasePC.UI.UI
{
    /// <summary>
    /// 系统样式
    /// </summary>
    public partial class UcSystemStyle : UserControl, IFrameFileConfig
    {
        public ICommand SaveConfig { get; set; }
        public ICommand RefreshConfig { get; set; }
        public string heandText { get; set; }
        public UcSystemStyleModel viewMode { get; set; }
        public UcSystemStyle()
        {
        
            InitializeComponent();
            this.Loaded += UcSystemStyle_Loaded;
            heandText = "系统样式";
            viewMode = DataContext as UcSystemStyleModel;
        }

        private void UcSystemStyle_Loaded(object sender, RoutedEventArgs e)
        {
            viewMode.RefreshConfig.Execute(this);
            //viewMode.heandText = this.heandText;
        }



        public void RefreshConfigMethod()
        {
            viewMode.RefreshConfig.Execute(this);
        }

        public void SaveConfigMethod()
        {
            viewMode.SaveConfig.Execute(this);
        }
    }
}
